package com.example.other.mapper;

import com.example.other.domain.Checkitem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author Limhuang
* @description 针对表【checkitem】的数据库操作Mapper
* @createDate 2024-07-03 10:15:00
* @Entity com.example.other.domain.Checkitem
*/
public interface CheckitemMapper extends BaseMapper<Checkitem> {

    @Select("SELECT * FROM checkitem ci LEFT JOIN checkitemdetailed cd ON ci.ciId = cd.ciId WHERE ci.ciId=#{id}")
    List<Checkitem> getCheckitemById(@Param("id") Integer id);
}




